import pytest

from const import DIR_DATA
from lib.faker_data import faker_name
from lib.parse import write_files

path = DIR_DATA / "test_flow.json"


@pytest.fixture(scope="session", autouse=True)
def init_data():
    data = {"name": faker_name()}
    write_files(str(path), data)
